//
//  OrderDetailModel.m
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/5/6.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import "OrderDetailModel.h"

#import "ProductOrderModel.h"

@implementation OrderDetailModel

+(OrderDetailModel *)paraWithDict:(NSDictionary *)dict{
    OrderDetailModel *model;
    model = [OrderDetailModel yy_modelWithDictionary:dict];
    model.ID = [dict[@"id"] integerValue];
    NSArray *arr = model.items;
    NSMutableArray *arr1 = [NSMutableArray array];
    for (NSDictionary *dic in arr) {
        ProductOrderModel *orderM = [ProductOrderModel paraWithDict:dic];
        [arr1 addObject:orderM];
    }
    model.items = (NSArray *)arr1;
    
    return model;
}

@end


@implementation OrderDetailDeliverModel

+(OrderDetailDeliverModel *)paraWithDict:(NSDictionary *)dict{
    OrderDetailDeliverModel *model;
    model = [OrderDetailDeliverModel yy_modelWithDictionary:dict];
    model.ID = [dict[@"id"] integerValue];
    return model;
}

@end

